-- GENERATED SPELL FOR [Dark Strand Cultist] --


function spell0_3725(pUnit, Event) --@Corruption,n/a--
pUnit:FullCastSpellOnTarget(6222,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3725', 15000, 1)
end

function spell1_3725(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(20791,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3725', 3000, 1)
end

function spell2_3725(pUnit, Event) --@Summon Imp,Self--
pUnit:FullCastSpellOnTarget(11939,pUnit)
pUnit:RegisterEvent('Sorts_3725', 557, 1)
end

function Sorts_3725(pUnit, Event)
local choix_sorts_3725 = math.random(0, 2)
if choix_sorts_3725 == 0 then
pUnit:RegisterEvent('spell0_3725', 1, 1)
end
if choix_sorts_3725 == 1 then
pUnit:RegisterEvent('spell1_3725', 1, 1)
end
if choix_sorts_3725 == 2 then
pUnit:RegisterEvent('spell2_3725', 1, 1)
end
end

function mob3725_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3725', math.random(1500, 3000), 1)
end

function mob3725_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3725_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3725_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3725, 1, 'mob3725_Action')
RegisterUnitEvent(3725, 2, 'mob3725_Leave')
RegisterUnitEvent(3725, 3, 'mob3725_Kill')
RegisterUnitEvent(3725, 4, 'mob3725_Die')
